package bean;

import lombok.*;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @classname:Detail
 * @description:
 * @author: Mr.Z
 * @date: 2021/1/1 9:58
 * @version: 0.1
 * @since:1.8
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
public class Detail {
    private Integer oid;
    private Integer uid;
    private Integer id;
    private Integer count;

    public Detail(ResultSet rs) {
        try {
            this.oid = rs.getInt("oid");
            this.uid = rs.getInt("uid");
            this.id = rs.getInt("id");
            this.count = rs.getInt("count");
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
